#ifndef _COMBATLOGGER_
#define _COMBATLOGGER_
#include "AppSetting.h"
class CCombatLoger
{
public:
	void append(const std::string& s)
	{
		m_vNodes.push_back(s);
	}
	std::string ToStringAll();
	void Clear()
	{
		m_vNodes.clear();
	}
	const std::vector<std::string>& Nodes() const { return m_vNodes;}
private:
	std::vector<std::string> m_vNodes;
};
std::string Repeat(char c,uint32 n);
#ifdef _DEBUG 
	#define DEBUGLOG(L,X)\
	{\
		std::stringstream ss;\
		ss<<X;\
		L.append(ss.str());\
	}
#else
	#define DEBUGLOG(L,X)\
	{\
		if(AppSetting::Instance().IsEditor())\
		{\
			std::stringstream ss;\
			ss<<X;\
			L.append(ss.str());\
		}\
	}
#endif //#ifdef _DEBUG 




#endif